body {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 设置最小高度为视口高度 */
    background-image: url('../img/background.jpg'); 
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中显示 */
    overflow: hidden; /* 隐藏溢出内容 */
}

.svg-image {
    position: absolute;
    top: 15px; /* 距离顶部的距离，可按需调整 */
    right: 200px; /* 距离右侧的距离，可按需调整 */
    width: 80px; /* 设置宽度 */
    height: auto; /* 保持宽高比 */
    z-index: 100; /* 确保图标显示在其他元素之上 */
}

.top-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 106px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 1);
}

.nav-bar {
    position: absolute;
    left: 50%; /* 将左边缘定位到父元素宽度的 50% 处 */
    top: 50%; /* 将上边缘定位到父元素高度的 50% 处 */
    transform: translate(-50%, -50%); /* 向左和向上分别平移自身宽度和高度的 50% */
    width: 1000px;
    height: 70px;
    border-radius: 45px;
    opacity: 1;
    background-color: rgba(229, 229, 229, 1);
}

.search-box {
    position: absolute;
    left: 21.56px;
    top: 9px;
    width: 56.25px;
    height: 21.88px;
    opacity: 1;
}

.text-area {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 120px;
    height: 34px;
    font-size: 30px;
    font-weight: 400;
    line-height: 33.4px;
    color: rgba(0, 0, 0, 1);
    text-decoration: none; /* 取消下划线 */
}

.main-content {
    position: absolute;
    left: 50%;
    top: 190px; /* 顶部栏高度 + 间隔 */
    transform: translateX(-50%);
    width: 100%;
    max-width: 1246px;
    min-height: calc(100vh - 106px - 80px); /* 减去顶部栏高度和上下间隔 */
    border-radius: 45px;
    opacity: 1;
    background-color: rgba(245, 235, 213, 1);
    border: 1px solid rgba(229, 229, 229, 1);
}

.icons {
    position: absolute;
    top: 10px;
    right: 10px;
    /* 移除弹性布局相关属性 */
    /* display: flex;
    gap: 10px; */
}


.grid-container {
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 350px);
    grid-template-rows: repeat(2,350px);
    gap: 20px;
    padding: 20px;
}

.grid-cell {
    border-radius: 45px;
    opacity: 1;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(229, 229, 229, 1);
}

.add-button {
    position: absolute;
    right: 200px;
    top: 160px;
    width: 100px;
    height: 100px;
    opacity: 1;
    background-color: rgba(255, 87, 51, 1);
    border-radius: 50%; /* 将元素变成圆形 */
}
.main-page-svg {
    position: absolute;
    left: 20px;
    top: 20px; 
}

.Search-svg {
    position: absolute;
    right: 380px;
    top: 30px; 
}